#include "FramedRect.h"

FramedRect::FramedRect()
{
	canvas = NULL;
	d_id = -1;
}
FramedRect::FramedRect(int _x, int _y, int _w, int _h, DrawingCanvas *_canvas)
{
	canvas = _canvas;
	d_id = canvas->addDrawing(Drawing(_x,_y,_x+_w,_y+_h,d_framedrect));
}
FramedRect::FramedRect(int _x, int _y, int _w, int _h, Color c, DrawingCanvas *_canvas)
{
	canvas = _canvas;
	d_id = canvas->addDrawing(Drawing(_x,_y,_x+_w,_y+_h,c,d_framedrect));
}
